[. . . ] Z231-E1-02 CompoWay/F Communication Smart Sensors ZS Series Command Reference Introduction Thank you for purchasing the ZS Series. This manual provides information regarding operations and input/output formats for the communication between ZS Series controllers and external devices using the Omron proprietary protocol, CompoWay/F. This manual provides information for the following models and versions. Model ZS-LDC ZS-HLDC ZS-MDC ZS-DSU * Firmware Version v2. 000 or later v1. 000 or later v2. 000 or later v2. 000 or later Different firmware versions may cause communication errors, unintended setting overwrite, and damages on the controller. [. . . ] is 00h, values are shown as below: 02h 02h (C000h + 00h (Data No. )) 05h (Unit No. ) 00h (CH No. ) and (8000h + 1h (Number of Elements)) 00000003h (Data to be written), In the command section, the value is shown as below: 02h 02h C000h 0000h 8001h 00000003h To this command, if the response is shown as below: 02h 02h 0000h It indicates a normal end. ZS Series CompoWay/F Communication Command Reference Section 3 Setting Value Obtaining and Changing Command Measurement Setting 1 (Settings per TASK) (Note 2) Unit No. 00h 01h 02h 2Ah 2Bh 02h 02h Parameter Scaling mode Span value Offset value Smooth Average number of times Setting range/output range 0: OFF 1: ON -20000 to 20000 (X0. 0001) -999999999 to 999999999 (nm) 0: OFF 1: ON 0: 1 time 1: 2 times 2: 4 times 3: 8 times 4: 16 times 5: 32 times 6: 64 times 7: 128 times 8: 256 times 9: 512 times 10: 1024 times 11: 2048 times 12: 4096 times 0: OFF 1: ON 1 to 5000 (ms) 0: OFF 1: PEAK 2: BOTTOM 3: P-P 4: AVERAGE 5: SAMPLE 0: External 1: Self-up trigger 2: Self-down trigger -999999999 to 999999999 (nm) 0 to 999999999 (nm) 0 to 5000 (ms) 1 to 5000 (ms) 0: OFF 1: ON -999999999 to 999999999 (nm) 0: REAL 1: HOLD -999999999 to 999999999 (nm) -999999999 to 999999999 (nm) Remarks Section 3 Unit No. and Parameter No. 2Ch 02h 03h Differential mode Differentiation cycles Hold type 2Dh 02h 03h Trigger method 04h 05h 06h 07h 08h 2Eh 05h 07h 30h 02h 03h Trigger level Trigger hysteresis Trigger delay (ms) Sampling period (ms) Trigger delay mode Offset value for zero reset Zero reset mode LOW threshold value HIGH threshold value ZS Series CompoWay/F Communication Command Reference 3-7 Section 3 Setting Value Obtaining and Changing Command (Note 2) The same task as MDC is performed as internal processing when selecting a "THICK/GAP FILM/OTHERS - TRANSFER" mode (when a 2-area measurement is performed). Processing is assigned to each task as below: When 2-area measurement is performed (*3) Calculates Area 1 displacement value Calculates Area 2 displacement value Calculates the difference (=Thickness/gap) between TASK 1 and TASK 2 Unused (*2) When measurement other than 2-area measurement is performed Measurement result (*1) Unused (*2) Unused (*2) Unused (*2) TASK1 TASK2 TASK3 TASK4 *1: The result is a thickness distance value when the thickness measurement is set. other than the above, such as TASK2 or a later one, can be calculated by adding (TASK number -1) to the Unit No. Example1: When reading the setting values of the average number of times (when ZS-LDC is 1CH, and no 2-area measurement is performed): Since the average number of times is 2Bh for Unit No. , and 02h for Data No. , values are shown as below: 02h 01h (C000h + 02h (Data No. )) 2Bh (Unit No. ) 01h (CH No. ) (8000h + 1h (Number of elements)) In the command section, the value is shown as below: 02h 01h C002h 2B01h 8001h To this command, if the response is shown as below: 02h 01h C002h 2B01h 8001h 00000004h Since the value is 4, this indicates 16 times. Example 2: When changing a high threshold value for the result of thickness to 100 mm (when ZS-LDC is 0CH, and a 2-area measurement is performed): The thickness result is calculated by using TASK3 when performing a 2-area measurement. Usually, the high threshold value is 30h for Unit No. , and 03h for Data No. Besides, 100mm thickness is expressed as 05F5E100h in a hexadecimal number because 100 mm is 100, 000, 000nm. 02h 02h (C000h + 03h (Data No. )) 58h (Unit No. ) 00h (CH No. ) and (8000h + 1h (Number of Elements)) 05F5E100h (Data to be written) In the command section, the value is shown as below: 02h 02h C003h 5800h 8001h 05F5E100h To this command, if the response is shown as below: 02h 02h 0000h It indicates a normal end. Section 3 Unit No. 3-8 ZS Series CompoWay/F Communication Command Reference Section 3 Setting Value Obtaining and Changing Command Measurement Setting 2 (common to all TASKs) Unit No. 00h 01h Parameter Non-measurement settings Output at CLAMP Setting range/output range 0: Keep 1: Clamp 0: MAX 1: 20mA 2: 12mA 3: 4mA 4: MIN 0 to 999999999 (nm) 0: OFF 1: OFF DELAY 2: ON DELAY 3: 1 shot 1 to 5000 (ms) Remarks 79h 00h 01h Hysteresis width Timer mode 02h 7Ah 02h 03h 04h 05h 06h 07h 08h 7Eh 04h 05h 06h 07h 7Fh 01h 06h 0Ah 0Bh 0Ch 0Dh F0h 08h C0h C1h C2h C3h C4h Delay time Monitor focus mode Monitor focus distance value 1 Monitor focus distance value 2 Monitor focus current value 1 Monitor focus current value 2 Monitor focus voltage value 1 Monitor focus voltage value 2 Input polarity of external input 0 Input polarity of external input 1 Input polarity of external input 2 Input polarity of external input 3 External Input (IN) function mode Digital output target External input 0 mode External input 1 mode External input 2 mode External Input 3 mode External input mode Timing input Reset input LD-OFF input Zero-reset execution Zero-reset cancel Section 3 0: OFF, 1: ON -999999999 to 999999999 (nm) -999999999 to 999999999 (nm) 4 to 20 (mA) 4 to 20 (mA) -10 to 10 (V) -10 to 10 (V) 0: L active 1: H active (Note 4) Unit No. and Parameter No. 0: Standard 1: Bank 0: OFF 1: ON 0: Not used 1: Trigger 2: Hold reset 3: Laser OFF 4: Zero-reset 0: STANDARD 2: Parallel input OFF mode 0: OFF 1: ON 0: OFF 1: ON 0: OFF 1: ON 1: Execution 1: Cancel (Note 5) (Note 6) ZS Series CompoWay/F Communication Command Reference 3-9 Section 3 Setting Value Obtaining and Changing Command (Note 4) To change the monitor focus setting, monitor focus mode must be ON. For example, to change the current setting of the monitor focus, change parameters below: Monitor focus mode (ON) Monitor focus distance value 1 Monitor focus distance value 2 Monitor focus current value 1 Monitor focus current value 2 In addition, set outputs (current and voltage), which are set by the analog output switch in the controller. (Note 5) External input 0 mode and External input 1 mode settings cannot be changed because they automatically function as bank inputs when the bank mode is used (when "external input (IN) function mode" is set to "bank"). 3-10 When the external input mode is set to "STANDARD", the controller enters into the status below: * * * * External input of the controller is enabled, Commands from timing input to zero-resetting are disabled. External input of the controller is enabled, Commands from timing input to zero-resetting are disabled. When the external input mode is set to "Parallel input OFF", the controller enters into the status below: Therefore, to send a command related to inputs, the external input mode should be set to "Parallel input OFF. " Once ON is written to the timing input, reset input, and LD-OFF input parameters, the ON state is kept until OFF is written next. However, special care shall be taken because the operation changes depending on the state of external input line to the controller when the external input mode is set back to the "standard mode. " Operations are performed depending on the settings when "Execution" or "Cancel" is written to the parameter with respect to the zero-reset. Example 1: To perform zero-reset (when ZS-LDC is 1CH): The command sending sequence is as follows: (1) Write "parallel input OFF mode" to the "external input mode" parameter. (2) Write "execution" to the "zero-reset execution" parameter. (3) Write "STANDARD" to the "external input mode" parameter. An actual example of a command procedure is shown below: (1) 02h 02h C008h F001h 8001h 00000002h (2) 02h 02h C0C3h F001h 8001h 00000001h (3) 02h 02h C008h F001h 8001h 00000000h Writing commands (1) and (3) above before and after the input-related operation command, respectively, is recommended. ZS Series CompoWay/F Communication Command Reference Section 3 Setting Value Obtaining and Changing Command Parameter List (ZS-HLDC) Sensing Setting (common for all TASKs) Unit No. [. . . ] Flow data is returned from controller upon completion of the data accumulation. Therefore, flow data is immediately returned after sending a command when data accumulation has already been completed upon sending a command. Response is not performed unless the data accumulation is completed upon sending a command. Section 4 How to Obtain Flow Data 4-7 ZS Series CompoWay/F Communication Command Reference Section 4 Setting Parameters Setting Parameters This section describes buffer size, buffer interval, and logging data. Buffer Size and Buffer Interval Buffer size of the measurement data to be accumulated in the ZS controller and its buffer interval can be changed. To change buffer size and buffer interval, change the parameters below: * Use DATAGET and DATASET commands to change and view the parameter. Unit No. [. . . ]